
<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script src="./js/jquery.min.js"></script>
        <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
            <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
            <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]--></head>
    
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <form class="layui-form" lay-filter="example">
                    <div class="layui-form-item">
                        <label for="amOne" class="layui-form-label">
                            星期一上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amOne" name="amOne" required="" lay-verify="amOne" autocomplete="off" class="layui-input" readonly></div>
                    </div>

                    <div class="layui-form-item">
                        <label for="pmOne" class="layui-form-label">
                            星期一下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmOne" name="pmOne" required="" lay-verify="pmOne" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="amTwo" class="layui-form-label">
                            星期二上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amTwo" name="amTwo" required="" lay-verify="amTwo" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="pmTwo" class="layui-form-label">
                            星期二下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmTwo" name="pmTwo" required="" lay-verify="pmTwo" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="amThree" class="layui-form-label">
                            星期三上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amThree" name="amThree" required="" lay-verify="amThree" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="pmThree" class="layui-form-label">
                            星期三下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmThree" name="pmThree" required="" lay-verify="pmThree" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="amFour" class="layui-form-label">
                            星期四上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amFour" name="amFour" required="" lay-verify="amFour" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="pmFour" class="layui-form-label">
                            星期四下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmFour" name="pmFour" required="" lay-verify="pmFour" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="amFive" class="layui-form-label">
                            星期五上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amFive" name="amFive" required="" lay-verify="amFive" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="pmFive" class="layui-form-label">
                            星期五下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmFive" name="pmFive" required="" lay-verify="pmFive" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="amSix" class="layui-form-label">
                            星期六上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amSix" name="amSix" required="" lay-verify="amSix" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="pmSix" class="layui-form-label">
                            星期六下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmSix" name="pmSix" required="" lay-verify="pmSix" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="amSeven" class="layui-form-label">
                            星期天上午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="amSeven" name="amSeven" required="" lay-verify="amSeven" autocomplete="off" class="layui-input" readonly></div>
                    </div>
                    <div class="layui-form-item">
                        <label for="pmSeven" class="layui-form-label">
                            星期天下午</label>
                        <div class="layui-input-inline">
                            <input type="text" id="pmSeven" name="pmSeven" required="" lay-verify="pmSeven" autocomplete="off" class="layui-input" readonly></div>
                    </div>

                    <div class="layui-form-item">
                        <label for="L_repass" class="layui-form-label">
                        </label>
                        <button  class="layui-btn" lay-filter="add" lay-submit="">
                            增加
                        </button>
                    </div>




                </form>
            </div>
        </div>
        <script>
            var id = window.location.search.substring(4);
            var token =  localStorage.getItem("token");
            var  head = new Headers();
            head.append('token',token);
            layui.use(['form','layer'], function() {
                var form = layui.form;
                var layer = layui.layer;
                $.ajax({
                    url: "/hospital/api/back/order/selectid",
                    type: "get",
                    dataType: "json",
                    headers: {
                        'token':token
                    },
                    data: {"id": id},
                    success: function (msg) {
                        var user = msg.data;
                        console.log(user);
                        //1未支付，2已支付，3已完成，4已取消
                        var s = null;

                        switch (user.status) {
                            case 1:
                                s = "未支付";break;
                            case 2:
                                s = "已支付";break;
                            case 3:
                                s = "已完成";break;
                            case 4:
                                s = "已取消";break;
                        }
                        //表单赋值
                        form.val('example', {
                            "orderid": user.orderid // "name": "value"
                            , "aliTradeNo": user.aliTradeNo
                            , "patientName": user.patientName
                            , "userName": user.userName
                            , "patientsPhone": user.patientsPhone
                            , "hospitalName": user.hospitalName
                            , "departmentName": user.departmentName
                            , "doctorName": user.doctorName
                            , "status": s
                            , "creatTime": user.creatTime
                            , "patientsTime": user.patientsTime
                            , "illnessName": user.illnessName
                        });
                    }
                });

            });


        </script>

    </body>

</html>